﻿using System.Text.RegularExpressions;
using NUnit.Framework;

namespace DotNet.DevOps.Tasks.Tests.Extensions
{
    /*internal static class NUnitExtensions
    {
        internal static void SetAcceptanceTestName<T>(this T @this)
        {
            if (TestContext.CurrentContext.Test.Name != null)
            {
                var name = TestContext.CurrentContext.Test.Properties["TestName"] as string;

                name = Regex.Replace(name, @"[\p{Lu}_]", x => " " + x.Value.ToLowerInvariant()).Trim();

                TestContext.CurrentContext.Test.Properties["TestName"] = name.Replace("Should", "");
            }
        }
    }*/
}
